package models

// 收藏夹表
type CollectModel struct {
	Model
	Title        string    `gorm:"comment:收藏夹标题;size:32" json:"title"`
	Abstract     string    `gorm:"comment:收藏夹简介;size:256" json:"abstract"`
	Cover        string    `gorm:"comment:收藏夹封面;size:256" json:"cover"`
	ArticleCount int       `gorm:"comment:收藏夹文章数" json:"articleCount"`
	UserID       uint      `gorm:"comment:用户ID" json:"userID"`
	UserModel    UserModel `gorm:"foreignKey:UserID" json:"-"`
}
